<?php
/**
 * @file
 * xenyo_sc_article.features.inc
 */

/**
 * Implements hook_image_default_styles().
 */
function xenyo_sc_article_image_default_styles() {
  $styles = array();

  // Exported image style: article_image.
  $styles['article_image'] = array(
    'label' => 'Article Image (750x500)',
    'effects' => array(
      25 => array(
        'name' => 'manualcrop_crop_and_scale',
        'data' => array(
          'width' => 750,
          'height' => 500,
          'upscale' => 0,
          'respectminimum' => 1,
          'onlyscaleifcrop' => 1,
          'style_name' => 'article_image',
        ),
        'weight' => -10,
      ),
      56 => array(
        'name' => 'image_scale_and_crop',
        'data' => array(
          'width' => 750,
          'height' => 500,
        ),
        'weight' => 4,
      ),
    ),
  );

  // Exported image style: article_thumbnail.
  $styles['article_thumbnail'] = array(
    'label' => 'Article Thumbnail (345x230)',
    'effects' => array(
      28 => array(
        'name' => 'manualcrop_crop_and_scale',
        'data' => array(
          'width' => 345,
          'height' => 230,
          'upscale' => 0,
          'respectminimum' => 1,
          'onlyscaleifcrop' => 1,
          'style_name' => 'article_thumbnail',
        ),
        'weight' => 0,
      ),
      47 => array(
        'name' => 'image_scale_and_crop',
        'data' => array(
          'width' => 345,
          'height' => 230,
        ),
        'weight' => 2,
      ),
    ),
  );

  return $styles;
}

/**
 * Implements hook_node_info().
 */
function xenyo_sc_article_node_info() {
  $items = array(
    'xenyo_sc_article' => array(
      'name' => t('Xenyo SC Article'),
      'base' => 'node_content',
      'description' => t('Custom article content type for SCMedia websites.'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
  );
  drupal_alter('node_info', $items);
  return $items;
}
